package ru.maksb.exchange.domain;

public class Order {
    private String clientId;
    private String referenceId;
    private String ticket;
    private OrderType type;
    private OrderSide side;
    private int amount;
    private double price;
    
    public Order(String clientId, String referenceId, String ticket,
            OrderType type, OrderSide side, int amount, double price) {
        super();
        this.clientId = clientId;
        this.referenceId = referenceId;
        this.ticket = ticket;
        this.type = type;
        this.side = side;
        this.amount = amount;
        this.price = price;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getReferenceId() {
        return referenceId;
    }

    public void setReferenceId(String referenceId) {
        this.referenceId = referenceId;
    }

    public String getTicket() {
        return ticket;
    }

    public void setTicket(String ticket) {
        this.ticket = ticket;
    }

    public OrderType getType() {
        return type;
    }

    public void setType(OrderType type) {
        this.type = type;
    }

    public OrderSide getSide() {
        return side;
    }

    public void setSide(OrderSide side) {
        this.side = side;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
    
    @Override
    public String toString() {
        return getClientId() + " " +
               getTicket() + " " +
               getReferenceId() + " " +
               getAmount() + " " +
               getPrice() + " " + 
               getSide() + " " +
               getType();
    }
    
}
